#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# @Project : chat_model 
# @File    : update_log_logic.py
# @IDE     : PyCharm 
# @Author  :ZH
# @Time    : 2025/1/22 9:47
__all__ = ['update_log_logic']

from tortoise.expressions import Q

from apps import cruds
from apps.models import User
from apps.utils.enumerate import SessionTypeEnum


class UpdateLogLogic:
    def __init__(self):
        self.crud = cruds.update_log_crud

    async def get_new_log(self):
        return await self.crud.model.filter(is_delete=False).order_by('-id').first()


update_log_logic = UpdateLogLogic()
